

import api from '@/util/request'
import { PREFIX } from '@/constant/const'
const reimburse = PREFIX.reimburse // 来源报账平台
// 发票夹列表
export function post_ticketPage(data) {
  return api.post(reimburse + '/form/pageInvoice', data)
}
// 发票报账明细
export function post_ticketInvoiceReimburse(data) {
  return api.post(reimburse + '/form/pageInvoiceReimburse', data)
}
// 删除发票/form/invoiceDelete
export function delete_ticket(data) {
  return api.post(reimburse + '/form/invoiceDelete', data)
}
// ocr识别导入
export function post_ocrInput(data) {
  return api.post(reimburse + '/form/ocrIdentification', data)
}
// 发票导入
export function post_ticketImport(data) {
  return api.post(reimburse + '/form/invoiceImport', data)
}
// 发票编辑
export function post_ticketEdit(data) {
  return api.post(reimburse + '/form/invoiceEdit', data)
}
// 附件删除
export function delete_annex(id) {
  return api.delete(reimburse + `/attachment/delete/${id}`)
}
// 附件批量删除
export function deleteBatch_annex(data) {
  return api.delete(reimburse + `/attachment/deleteBatch`, { data })
}
// 查询发票税率
export function querytax_byid(params) {
  return api.get(reimburse + `/invoiceSettings/page`, { params })
}
// 查询发票详情
export function getInvoiceById(id) {
  return api.get(reimburse + `/form/getInvoiceById/${id}`)
}
// 发票报账统计
export function getReimburseStatistics(data) {
  return api.post(reimburse + `/form/reimburse-statistics`, data)
}
// 发票报账明细导出
export function exportReimburseStatisticsExport(data) {
  return api.download({
    url: reimburse + '/form/reimburse-statistics-export',
    method: 'post',
    data,
    responseType: 'blob',

  });
  r
}